<?php
require("abifunktsioonid2.php");
$sorttulp="nimetus";
$otsisona="";
if(isSet($_REQUEST["sort"])){
$sorttulp=$_REQUEST["sort"];
}
if(isSet($_REQUEST["otsisona"])){
$otsisona=$_REQUEST["otsisona"];
}
$kaubad=kysiKaupadeAndmed($sorttulp, $otsisona);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Teenuste leht</title>
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<link href="layout.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="navigation">
	<tr>
		<td valign="top"><ul>
				<li><a href="index.php" class="active">Avaleht</a></li>
				<li><a href="meldimine.php">Log/kasutajale</a></li>
				<li><a href="hotell.php">Admin</a></li>
			
				<li><a href="otsingteenus.php">Otsing</a></li>
			</ul></td>
	</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="content">
	<tr>
		<td><table width="100%" border="0" cellpadding="0" cellspacing="0" id="logo">
				<tr>
					<td><h1>Hotell Donaudampfschiffahrtsgesellschaftskapitän</h1>
						</td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" id="splash">
			<tr>
			<td>


            	

<h2>Teenused. </h2>
        	


<form action="otsingteenus.php">
Otsi: <input type="text" name="otsisona" />
<table>
<tr>
<th><a href="otsingteenus.php?sort=nimetus">Teenus</a></th>
<th><a href="otsingteenus.php?sort=hind">Hind</a></th>
<th><a href="otsingteenus.php?sort=grupinimi">Grupp</a></th>
<th><a href="otsingteenus.php?sort=kogus">Kogus</a></th>
</tr>
<?php foreach($kaubad as $kaup): ?>
<tr>
<td><?=$kaup->nimetus?></td>
<td><?=$kaup->hind ?></td>
<td><?=$kaup->grupinimi ?></td>
<td><?=$kaup->kogus ?></td>
</tr>
<?php endforeach; ?>

 
</table>
 </td>
	 </tr>
	 </table>
			
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="footer">

		
			
					
			

	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td><p>&copy;&nbsp;Copyright 2009. NO Rights Reserved. template design by <a href="#" class="links">zhengdesign.com</a> </p></td>
	</tr>
</table>
<div style="text-align: center; font-size: 0.75em;">Design downloaded from <a href="http://www.freewebtemplates.com/">free website templates</a>.</div></body>
   



</body>
